import Theaters from '../pages/theaters/theaters.js'
import addTheaters from '../pages/theaters/add-theaters.js';
import upDate from '../pages/theaters/upDate.js';
import theatersSearch from '../pages/theaters/theaters-search.js';

export default {
    "/theaters": {
        on() {
            new Theaters({ el: '#info-content' })
        }
    },
    '/theaters-add': {
        on() {
            new addTheaters({ el: '#info-content' })
        }
    },
    '/theaters-upDate': {
        on() {
            new upDate({ el: '#info-content' })
        }
    },
    '/theaters-search/:_id': (_id) => {
        new theatersSearch({ el: '#info-content', _id })
    }
}